{% extends "base2.html" %}
{% load staticfiles %}

  {% block private_css %}
  <link href="css/security.css" rel="stylesheet">
  {% endblock %}

  {% block content %}
      <h1>账号与安全</h1>
      <form role="form" action="/Accounts/security/" method="POST" autocomplete="off">
      {% crsf_token %}
           <div class="form-group">
           <div><div class="reg_mess">
            <span class="glyphicon glyphicon-user">*</span></div>
            
            </div> 

        <div><div class="reg_mess" >
        <span class="glyphicon glyphicon-heart-empty">*</span></div>
            
        </div>

        <div  class="reg_mess" >
        <span class="glyphicon glyphicon-lock">*</span></div>
            <div class="reg_mess_input">
            {{ obj1.pwd }}
            <span id="pwd_remind" class="error_msg1"></span>
            {%  if obj1.errors.pwd %}
                <span id="pwd_error" class="error_msg">{{ obj1.errors.pwd.0 }}</span>
            {% endif %}
            </div>
        </div>
        
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-lock">*</span></div>
            <div class="reg_mess_input">
            {{ obj1.pwd1 }}
            <span id="pwd2_remind" class="error_msg1"></span>
            {%  if obj1.errors.pwd1 %}
                <span id="pwd2_error" class="error_msg">{{ obj1.errors.pwd2.0 }}</span>
            {% endif %}
            </div>
        </div>
        
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-envelope"></span></div>
        <div class="reg_mess_input">
            {{ obj1.pwd2 }}
            <span id="email_remind" class="error_msg1"></span>
            {%  if obj1.errors.pwd2 %}
                <span id="email_error" class="error_msg">{{ obj1.errors.email.0 }}</span>
            {% endif %}    
            </div>
           <button id="regBtn" type="submit" class="form-control btn btn-primary center-block">修改</button>
           </div>
       </form>
  {% endblock %}